package com.siwei.mes.entity.vo;

import com.siwei.mes.entity.erp.ProjectMaterialsReport;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author yangke
 * @version 1.0
 * @date 2024/7/27
 * @Description 试验台账打印配置Vo
 */
@Data
@Accessors(chain = true)
public class ExperimentPrintVo {
    @ApiModelProperty(value = "材料名称", name = "clmc")
    private String clmc;
    @ApiModelProperty(value = "材料规格", name = "clgg")
    private String clgg;
    @ApiModelProperty(value = "材料类型", name = "cllx")
    private String cllx;
    @ApiModelProperty(value = "材料名称", name = "wlmc")
    private String wlmc;
    @ApiModelProperty(value = "材料规格", name = "wlgg")
    private String wlgg;
    @ApiModelProperty(value = "材料类型", name = "wllx")
    private String wllx;
    @ApiModelProperty(value = "任务单计划时间", name = "planTime")
    private Date planTime;
    @ApiModelProperty(value = "生产厂家", name = "factory")
    private String factory;
    @ApiModelProperty(value = "供应商", name = "supplyCompanyName")
    private String supplyCompanyName;
    @ApiModelProperty(value = "甲供 1-是 0-否", name = "selfSupply")
    private Integer selfSupply;

    public void setMaterialsValue(ExperimentPrintVo experimentPrintVo,ProjectMaterialsReport.MaterialsInfo materialsInfo){
           /*experimentPrintVo.setCllx(materialsInfo.getCllx());
            experimentPrintVo.setClmc(materialsInfo.getClmc());
            experimentPrintVo.setClgg(materialsInfo.getClgg());*/
            experimentPrintVo.setWlmc(materialsInfo.getWlmc());
            experimentPrintVo.setWlgg(materialsInfo.getWlgg());
            experimentPrintVo.setFactory(materialsInfo.getCj());
            experimentPrintVo.setSupplyCompanyName(materialsInfo.getGys());
    }
}
